<?php
/**
 * Created by PhpStorm.
 * User: yadongw
 * Date: 15-5-26
 * Time: 下午7:46
 */
use UcxApiSdk\Client;
include 'common.php';

$client = new Client();
$client->setAccessToken($_COOKIE['ucx_access_token']);
$libraryResource = $client->getLibrary();
$type = $_GET['action'];
$lid = $_GET['lid'];
if($type == 'delete') {
	$libraryResource->delete($lid);
	header("location:index.php");
}
?>